package com.suray.wcs.service.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suray.wcs.service.system.entity.RgvHeartLogDB;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface RgvHeartLogMapper extends BaseMapper<RgvHeartLogDB> {

    List<RgvHeartLogDB> getRgvHeartLogs(RgvHeartLogDB rgvHeartLogdb);

    void delRgvHeartLog(Date time);

    void deleteThreeDaysAgoLog(@Param("days") Integer days, @Param("time") Date time);

    List<RgvHeartLogDB> getGraphData(RgvHeartLogDB rgvHeartLogdb);

    int deleteLogByIds(Long[] interfaceLogIds);

    void cleanLog();
}
